<extend name="Layout:layout_edit" />
<block name="body_content_block">
    <taglib name="Common\TagLib\Sohtml"/>
    <form action="{:AddonU('PayFee/item_save')}" method="post">
        <table>
            <tr>
                <th>费率组：</th><td>
                <if condition="$data.id neq ''">
                    <input type="text" name="payType" class="easyui-textbox" value="{$data.payType}" readonly="readonly"/>
                    <else/>
                    <sohtml:select name="payType" min="1" max="20" skips="{$filter}" value="{$data['payType']}" required="required" data-lock-value="true"/>
                </if>
            </td></tr>
            <tr>
                <th>费率组名称：</th><td>
                <input type="text" class="easyui-textbox" name="feeName" placeholder="费率组名称" value="{$data.feeName}" required/>
            </td></tr>
            <tr>
                <th>首次计费时长：</th><td>
                <input type="text" class="easyui-textbox" name="firstSec" placeholder="首次计费时长" value="{$data.firstSec}" required/> 秒
            </td></tr>
            <tr>
                <th>首次计费金额：</th><td>
                <input type="text" class="easyui-textbox" name="firstRate" placeholder="首次计费金额" value="{$data.firstRate}" required/>
            </td></tr>
            <tr>
                <th>分段计费时长：</th><td>
                <input type="text" class="easyui-textbox" name="perSec" placeholder="分段计费时长" value="{$data.perSec}" required/> 秒
            </td></tr>
            <tr>
                <th>分段计费金额：</th><td>
                <input type="text" class="easyui-textbox" name="perRate" placeholder="分段计费金额" value="{$data.perRate}" required/>
            </td></tr>
        </table>
        <input type='hidden' name='id' value='{$data.id}'/>
    </form>
</block>
<block name="body_after_block">
    <script>item_form.resize_owner_dialog({width:320})</script>
</block>